package main

import "fmt"

// 结构体定义

type Student struct {
	id   int
	name string
	age  int
	addr string
}

func main() {
	var s1 = Student{1, "张三", 18, "北京"}
	var s2 = Student{2, "李四", 19, "北京"}
	var s3 = Student{3, "王五", 20, "北京"}

	var studentArray [3]Student
	studentArray[0] = s1
	studentArray[1] = s2
	studentArray[2] = s3

	fmt.Println(studentArray)
}
